﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zor_DAL;
using Zor_Modes;
using Zor_Tools;

namespace Zor_Bll
{

    public class TaxStat_Bll<T> where T : class
    {

        /// <summary>
        /// 获取缴税统计表
        /// </summary>
        /// <param name="index">页码</param>
        /// <param name="TotalCount">返回值</param>
        /// <returns></returns>
        public static List<T> GetPageList(int index, out int TotalCount, string where)
        {

            return PagerHelp<T>.GetPagerList(index, "V_TaxStat", "Housename", out TotalCount, "Dt_Id = " + RequestSession.GetSessionUser().DT_Id + "");
        }

        /// <summary>
        /// 导出缴税统计表（不分页）
        /// create zhl by 2017.4.1     
        /// </summary>
        /// <returns></returns>
        public static List<T> GetList(string where)
        {
            return TaxStat_DAL<T>.SelectViewTaxStat(where);
        }

    }
}
